#include<bits/stdc++.h>
using namespace std;
int a[100005];
int n;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int mx=-1;
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        int x;
        scanf("%d",&x);
        a[x]++;
        if(x>mx)
        {
            mx=x;
        }
    }
    int p=0;
    int cnt=0;
    for(int i=1;i<=mx;i++)
    {
        if(a[i]==0)
        {
            continue;
        }
        else if(a[i]!=0 && p==0)
        {
            p=i;
            cnt+=a[i];
        }
        else if(a[i]!=0 && p!=0)
        {
            cnt-=min(cnt,a[i]);
            cnt+=a[i];

        }
    }
    printf("%d\n",cnt);
    return 0;
}
